<template>
  <div class="params">
    <el-dialog :title="forms.title" :visible.sync="forms.flag" width="600">
      <el-form :model="form" :rules="rules" ref="ruleForm">
        <el-form-item label="动态参数" label-width="120px" prop="name">
          <el-input v-model="form.name" autocomplete="off"></el-input>
        </el-form-item>
      </el-form>
      <div slot="footer" class="dialog-footer">
        <el-button @click="forms.flag = false">取 消</el-button>
        <el-button type="primary" @click="forms.flag = false">确 定</el-button>
      </div>
    </el-dialog>
  </div>
</template>

<script>
export default {
  props: { forms: Object, form: Object },
  data() {
    return {
      rules: {
        name: [
          { required: true, message: "请输入动态参数", trigger: "blur" },
          { min: 3, max: 5, message: "长度在 3 到 5 个字符", trigger: "blur" },
        ],
      },
    };
  },
};
</script>

<style></style>
